@extends('admin.base.index')

@section('content')
@if (session('msg'))
    {{ session('msg') }}
@else

@endif
    <div class="block-area" id="text-input">
        <h3 class="block-title">Text Input</h3>
        <form action='/admin/list' method='post'>
            <input type='hidden' name='_token' value='{{ csrf_token() }}'>
            <div class="row">
                <div class="col-lg-4">
                    <input name='name' type="text" class="form-control m-b-10" placeholder="姓名">
                </div>
                <div class="col-lg-4">
                    <input name='password' type="password" class="form-control m-b-10" placeholder="密码">
                </div><br><br><br><br>
                <div class="col-lg-4">
                    权限: <br>
                    <input name='level' type="radio" value='0' class="form-control m-b-10">超级管理员 <br>
                    <input name='level' type="radio" value='1' class="form-control m-b-10" checked>管理员
                </div><br><br><br><br>

                <div class='row'>
                    <div class="col-lg-12">
                        <input type='submit' class='btn' value='添加'>
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
        </form>
        <!-- 显示验证规则失败时的信息 -->
        @if (count($errors) > 0)
            <div class="alert alert-danger">
                <ul>
                    @foreach ($errors->all() as $error)
                        <li>{{ $error }}</li>
                    @endforeach
                </ul>
            </div>
        @endif
    </div>
@stop
